package com.core.bean;
import java.util.Date;

/**
 *  购物车实体类
 */
public class CarItem {

    /**
     * 主键
     */
    private String id;

    /**
     *  用户id
     */
    private String uid;
    /**
     * 店铺id
     */
    private String shopid;

    /**
     * 商品数量
     */
    private Integer count;

    /**
     * 商品
     */
    private Goods goods;
    /**
     * 添加时间
     */
    private Date time = new Date();
    /**
     * 备注
     */
    private String remark;

    public CarItem() {
    }

    @Override
    public String toString() {
        return "CarItem{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", shopid='" + shopid + '\'' +
                ", count=" + count +
                ", goods=" + goods +
                ", time=" + time +
                ", remark='" + remark + '\'' +
                '}';
    }

    public CarItem(String id, String uid, String shopid, Integer count, Goods goods, Date time, String remark) {
        this.id = id;
        this.uid = uid;
        this.shopid = shopid;
        this.count = count;
        this.goods = goods;
        this.time = time;
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getShopid() {
        return shopid;
    }

    public void setShopid(String shopid) {
        this.shopid = shopid;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
